Triggers

Use triggers and actions to create interactions. Use triggers to set off actions, such as setting a property to a certain value or setting the state of an application. For example, Kanzi generates messages from user input and these messages are handled by nodes according to specified behavior.

Nodes define most of the message handling behavior, such as scrolling in a List Box node. However, to meet the requirements of your application, you can define additional behavior. For example, a Button node creates a click message when a user clicks or taps that button, but you can define what happens after the generated click message. An example action is that a click triggers an animation that highlights the button that the user clicked.

All Kanzi nodes can send and receive messages and you can intercept these messages with triggers. Some nodes by default receive messages from specific user input events. For example, a Button node by default receives click messages and a Scroll View node by default receives scroll messages.

In Kanzi these concepts relate to defining event-driven logic:

See also

Using triggers

Handling user input

Using input manipulators

Using messages

Triggers reference

Actions reference